{yun:}include file="$comstyle/header.htm"{/yun}
<div class="w1000">
	<div class="admin_mainbody">
		{yun:}include file="$comstyle/left.htm"{/yun}
		<link rel="stylesheet" href="{yun:}$style{/yun}/style/class.public.css?v={yun:}$config.cachecode{/yun}" type="text/css" />
		<script src="{yun:}$config.sy_weburl{/yun}/data/plus/job.cache.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script>
		<script src="{yun:}$config.sy_weburl{/yun}/data/plus/city.cache.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script>
		<script src="{yun:}$config.sy_weburl{/yun}/js/class.public.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script>
		<div class=right_box>
			<div class=admincont_box>
				<div class="com_tit"> <span class="com_tit_span">搜人才</span> </div>
				<!--职位信息-->
				<div class="ps_box">
					<div class="ps_box_c">
						<form action='index.php' method="get" id="form" class="layui-form">
							<input name='c' value='resume' type='hidden'>
							<div class="ps_select fl">
								<div class="layui-form-item" style="margin-bottom:0px;">
									<div class="ps_select_box">
										<input type="hidden" name="job_post" id="job_post" value="{yun:}$smarty.get.job_post{/yun}" />
										<input class="ps_class_bx " type="button" value="{yun:}if $job_name[$smarty.get.job_post]{/yun}{yun:}$job_name[$smarty.get.job_post]{/yun}{yun:}else{/yun}请选择职位类别{yun:}/if{/yun}" onclick="index_job(1,'#workadds_job','#job_post','left:100px;top:100px; position:absolute;','{yun:}$smarty.get.job_post{/yun}');" id="workadds_job">
									
									</div>

									<div class="ps_select_box">
										<input type="hidden" name="cityin" id="cityid" value="{yun:}$smarty.get.cityin{/yun}" />
										<input type="button" class="ps_class_city" value="{yun:}if $city_name[$smarty.get.cityin]{/yun}{yun:}$city_name[$smarty.get.cityin]{/yun}{yun:}else{/yun}请选择工作地区{yun:}/if{/yun}" id="city" onclick="index_city(1, '#city', '#cityid');">
									</div>

									<div class="ps_select_option">
										<select name="exp" lay-filter="exp">
											<option value="">请选择工作年限</option>
											{yun:}foreach from=$userdata.user_word key=j item=v{/yun}
											<option value="{yun:}$v{/yun}" {yun:}if $smarty.get.exp==$v{/yun} selected{yun:}/if{/yun}>{yun:}$userclass_name[$v]{/yun}</option>
											{yun:}/foreach{/yun}
										</select>
									</div>

									<div class="ps_select_option">
										<select name="edu" lay-filter="edu">
											<option value="">请选择最高学历</option>
											{yun:}foreach from=$userdata.user_edu key=j item=v{/yun}
											<option value="{yun:}$v{/yun}" {yun:}if $smarty.get.edu==$v{/yun} selected{yun:}/if{/yun}>{yun:}$userclass_name[$v]{/yun}</option>
											{yun:}/foreach{/yun}
										</select>
									</div>

									<div class="ps_select_option">
										<select name="sex" lay-filter="sex">
											<option value="">请选择性别</option>
											{yun:}foreach from=$arr_data.sex key=j item=v{/yun}
											<option value="{yun:}$j{/yun}" {yun:}if $smarty.get.sex==$j{/yun} selected{yun:}/if{/yun}>{yun:}$v{/yun}</option>
											{yun:}/foreach{/yun}
										</select>
									</div>

									<div class="ps_select_option">
										<select name="uptime" lay-filter="uptime">
											<option value="">请选择更新时间</option>
											{yun:}foreach from=$uptime key=j item=v{/yun}
											<option value="{yun:}$j{/yun}" {yun:}if $smarty.get.uptime==$j{/yun} selected{yun:}/if{/yun}>{yun:}$v{/yun}</option>
											{yun:}/foreach{/yun}
										</select>
									</div>

									<div class="ps_xz_box" id="salary_sel">
										<span class="ps_xz_box_name">
						             		{yun:}if $smarty.get.minsalary!="" || $smarty.get.maxsalary!=""{/yun}
						             			{yun:}if $smarty.get.minsalary!="" && $smarty.get.maxsalary==""{/yun}
						             				{yun:}$smarty.get.minsalary{/yun}以上
						             			{yun:}elseif $smarty.get.minsalary=="" && $smarty.get.maxsalary!=""{/yun}
						             				{yun:}$smarty.get.maxsalary{/yun}以下
						             			{yun:}else{/yun}
						             				{yun:}$smarty.get.minsalary{/yun} - {yun:}$smarty.get.maxsalary{/yun}
						             			{yun:}/if{/yun}
						             		{yun:}else{/yun}
						             			选择月薪范围
						             		{yun:}/if{/yun}
						             	</span>
										<div class="resume_xz salary_option" style="display:none;">
											<a href="javascript:void(0)" onClick="setSalary('','2000')" class="resume_xzfw">2000以下</a>
											<a href="javascript:void(0)" onClick="setSalary('2000','4000')" class="resume_xzfw">2000-4000</a>
											<a href="javascript:void(0)" onClick="setSalary('4000','6000')" class="resume_xzfw">4000-6000</a>
											<a href="javascript:void(0)" onClick="setSalary('6000','8000')" class="resume_xzfw">6000-8000</a>
											<a href="javascript:void(0)" onClick="setSalary('8000','10000')" class="resume_xzfw">8000-10000</a>
											<a href="javascript:void(0)" onClick="setSalary('10000','')" class="resume_xzfw">10000以上</a>
											<input type="text" id="min" name="minsalary" size="6" value="{yun:}if $smarty.get.minsalary{/yun}{yun:}$smarty.get.minsalary{/yun}{yun:}/if{/yun}" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" class="resume_xz_text" />
											<span class="resume_xz_line">-</span>
											<input type="text" id="max" name="maxsalary" size="6" value="{yun:}if $smarty.get.maxsalary{/yun}{yun:}$smarty.get.maxsalary{/yun}{yun:}/if{/yun}" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" class="resume_xz_text" />
											<input type="submit" value="确定" class="resume_xz_bth">
										</div>
									</div>

									<input type="text" placeholder="输入要搜索的关键字" class="search_user_but_text fl" value="{yun:}$smarty.get.keyword{/yun}" name="keyword">
									<input type="submit" value="搜索" class="search_user_but_text_bth fl">
									<a href="index.php?c=resume" class="search_user_but_text_qk fl">清空所选条件</a>
									<div class="search_user_text_s fl">
										
									</div>
								</div>
						</form>
						</div>
					</div>
				</div>
				{yun:}if $total!=0{/yun}
				<div class="ps_head fl">
					<div class="ps_head_ft fl">
						<div class="ps_head_cn fl"></div><span class="ps_head_cn_s fl">简历列表</span></div>
					<div class="ps_head_rt fr">
						<input type="checkbox" value="1" {yun:}if $smarty.get.pic{/yun}checked{yun:}/if{/yun} class="search_user_cont_h1_ck" name='pic' id='pic' onclick="javascript:window.location.href='{yun:}if $smarty.get.pic{/yun}{yun:}searchurl m=member c=resume untype='pic'{/yun}{yun:}else{/yun}{yun:}searchurl m=member c=resume pic=1{/yun}{yun:}/if{/yun}'">
						<label for="pic"> <span class="search_user_cont_h1_right_s">有照片</span></label>
						<input type="checkbox" value="1" class="search_user_cont_h1_ck" {yun:}if $smarty.get.idcard{/yun}checked{yun:}/if{/yun} name='idcard' id='idcard' onclick="javascript:window.location.href='{yun:}if $smarty.get.idcard{/yun}{yun:}searchurl m=member c=resume untype='idcard'{/yun}{yun:}else{/yun}{yun:}searchurl m=member c=resume idcard=1{/yun}{yun:}/if{/yun}'">
						<label for="idcard"> <span class="search_user_cont_h1_right_s" >有身份验证</span></label>
					</div>
				</div>

				<div class="clear"></div>

				<div class="ps_ct">
					<table class="com_table">
						<tr>
							<th>姓名</th>
							<th>职位意向</th>
							<th>工作经验</th>
							<th>学历</th>
							<th>地区</th>
							<th>更新时间</th>
						</tr>

						{yun:}userlist limit=20 minsalary='auto.minsalary' maxsalary='auto.maxsalary' noid=1 idcard='auto.idcard' edu='auto.edu' order='auto.order' work='auto.work' exp='auto.exp' sex='auto.sex' keyword='auto.keyword' hy='auto.hy' cityin='auto.cityin' adtime='auto.adtime' pic='auto.pic' typeids='auto.typeids' type='auto.type' job1='auto.job1' job1_son='auto.job1_son' job_post='auto.job_post' uptime='auto.uptime' post_len=14 city_len=14 ispage=1 item=user key=key name=userlist1 islt=3{/yun}
						<tr>
							<td align="left">
								<a class="ps_ct_nm" href="{yun:}url m=resume c=search c=show id=$user.id{/yun}" target="_blank">{yun:}$user.username_n{/yun}</a>

								<span class="sex_n">
									（ {yun:}$user.sex{/yun}， {yun:}if $user.birthday{/yun}{yun:}$time-$user.birthday{/yun}岁{yun:}else{/yun}保密{yun:}/if{/yun} ）
								</span> 
								{yun:}if $user.idcard_status=='1'{/yun}
								<img src="{yun:}$style{/yun}/images/sf.png" title="身份已认证" class="user_rz_img png fl"> 
								{yun:}/if{/yun} 
								{yun:}if $user.ispic{/yun}
								<img src="{yun:}$style{/yun}/images/profile.png" title="有形象照" class="user_rz_img png fl"> 
								{yun:}/if{/yun}
							</td>
							<td width="300" align="left"><span class="yxjob_name">{yun:}$user.job_post_n{/yun}</span></td>
							<td>{yun:}$user.exp_n{/yun}</td>
							<td>{yun:}$user.edu_n{/yun}</td>
							<td>{yun:}$user.city_name_n{/yun}</td>
							<td>
								{yun:}if $user.time=='今天'||$user.time=='昨天'{/yun}
								<span style="color:red;">{yun:}$user.time{/yun}</span> {yun:}else{/yun} {yun:}$user.time{/yun} {yun:}/if{/yun}
							</td>
						</tr>
						{yun:}/userlist{/yun}
					</table>
				</div>
				{yun:}/if{/yun} 
				{yun:}if $total==0{/yun}
				<div class="clear"></div>
				<div class="msg_no">没有找到合适的简历。</div>
				{yun:}/if{/yun}

				<div class="clear"></div>
				<!-- 这里放分页-->
				{yun:}if $pagenav{/yun}
				<div class="search_pages" style="width:100%;text-align:center;">
					<div class="pages">{yun:}$pagenav{/yun}</div>
				</div>
				{yun:}/if{/yun}
			</div>
		</div>
	</div>
</div>
<script>
	$(document).ready(function() {
		$("#form").submit(function(e) {
			var min = $("#min").val();
			var max = $("#max").val();
			if(min && max && parseInt(max) < parseInt(min)) {
				$("#min").val(max);
				$("#max").val(min);
			}
		});

		$("#salary_sel").click(function() {
			$(".salary_option").show();
		});

	});

	function setSalary(min, max) {
		$("#min").val(min);
		$("#max").val(max);
	}
</script>
<script type="text/javascript">
	if(!('placeholder' in document.createElement('input'))) {

		$('input[placeholder],textarea[placeholder]').each(function() {
			var that = $(this),
				text = that.attr('placeholder');
			if(that.val() === "") {
				that.val(text).addClass('placeholder');
			}
			that.focus(function() {
					if(that.val() === text) {
						that.val("").removeClass('placeholder');
					}
				})
				.blur(function() {
					if(that.val() === "") {
						that.val(text).addClass('placeholder');
					}
				})
				.closest('form').submit(function() {
					if(that.val() === text) {
						that.val('');
					}
				});
		});
	}
</script>
<script>
	layui.use(['form'], function() {
		var form = layui.form,
			$ = layui.$;

	});
</script>
{yun:}include file="$tplstyle/public_search/index_search.htm"{/yun} {yun:}include file="$comstyle/yqms.htm"{/yun} {yun:}include file="$comstyle/footer.htm"{/yun}